package com.lkm.app_ui.ui;

import com.lkm.app_ui.AppConst;
import com.lkm.frame.otto.LinkBus;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;



public class PlayBeepEvent implements LinkBusEventFlag {

    public static void send(int type){
        LinkBus.sendBroadcast(new PlayBeepEvent(type), AppConst.mainHandler);
    }

    public static final int TYPE_paySuccess = 1;
    
    public static final int TYPE_pleaseCard = 2;

    
    public static final int TYPE_pleaseScanQr = 3;

    private final int type;

    public int getType() {
        return type;
    }

    public PlayBeepEvent(int type) {
        this.type = type;
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {
        return ThreadEnforcer.MAIN;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
